/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.myhome.util;

import javax.inject.Named;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

/**
 *
 * @author Renato
 */
@Named(value = "myHomeUtil")
@RequestScoped
public class MyHomeUtil {

    /**
     * Creates a new instance of MyHomeUtil
     */
    
    public String getPath(){
        ExternalContext ec;
        ec=FacesContext.getCurrentInstance().getExternalContext();
        return ec.getRequestContextPath();
    }
    
   
    
}
